package com.ssm.zy.common.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author 郑智辰~
 * @version 1.0
 *
 * 配置“定时任务”方法
 */
@Slf4j
@Component
public class ScheduledTasksService {

    @Scheduled(fixedRate = 5000l)
    public void doTask() {
        log.info("Executing scheduled task...");
    }
}
